package cn.tedu._05article.pojo.datatransferobject;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

@Setter
@Getter
@ToString
public class UserArticleParam {
    @NotBlank(message = "标题不能为null和空字符串和空白串")
    @Schema(description = "文章标题",required = true,example = "震惊！....")
    private String title;
    @Size(min =10,max = 500,message="内容长度为10-500")
    @Schema(description = "文章内容",required = true,example = "今天天气真好")
    private String content;
}
